<?php

	
	include '../config.php';
	include D_ROOT.'func/global.fnc.php';


	include D_ROOT.'source/Smarty/Smarty.class.php';
	$tpl = new Smarty();
	$tpl->template_dir = D_ROOT.'templates/admin';
	$tpl->tpl_dir = '.';
	$tpl->compile_dir = D_ROOT.'cache/templates_c/admin';
	$tpl->left_delimiter = '<!--{';
	$tpl->right_delimiter = '}-->';

	include_once D_ROOT.'language/admin.php';
	$tpl->assign('lang', $langs);

	include D_ROOT.'class/mysql.cls.php';
	$db = new db_mysql();
	$db->connect($dbhost, $dbuser, $dbpw, $dbname);

	define('DISPLAY_NUM', 30);

$country = array();
$country["1"]="Afghanistan";
$country["2"]="Albania";
$country["3"]="Algeria";
$country["4"]="American Samoa";
$country["5"]="Andorra";
$country["6"]="Angola";
$country["7"]="Anguilla";
$country["8"]="Antarctica";
$country["9"]="Antigua and Barbuda";
$country["10"]="Argentina";
$country["11"]="Armenia";
$country["12"]="Aruba";
$country["13"]="Australia";
$country["14"]="Austria";
$country["15"]="Azerbaijan";
$country["16"]="Bahamas";
$country["17"]="Bahrain";
$country["18"]="Bangladesh";
$country["19"]="Barbados";
$country["20"]="Belarus";
$country["21"]="Belgium";
$country["22"]="Belize";
$country["23"]="Benin";
$country["24"]="Bermuda";
$country["25"]="Bhutan";
$country["26"]="Bolivia";
$country["27"]="Bosnia and Herzegowina";
$country["28"]="Botswana";
$country["29"]="Bouvet Island";
$country["30"]="Brazil";
$country["31"]="British Indian Ocean Territory";
$country["32"]="Brunei Darussalam";
$country["33"]="Bulgaria";
$country["34"]="Burkina Faso";
$country["35"]="Burundi";
$country["36"]="Cambodia";
$country["37"]="Cameroon";
$country["38"]="Canada";
$country["39"]="Cape Verde";
$country["40"]="Cayman Islands";
$country["41"]="Central African Republic";
$country["42"]="Chad";
$country["43"]="Chile";
$country["44"]="China";
$country["45"]="Christmas Island";
$country["46"]="Cocos (Keeling) Islands";
$country["47"]="Colombia";
$country["48"]="Comoros";
$country["49"]="Congo";
$country["50"]="Cook Islands";
$country["51"]="Costa Rica";
$country["52"]="Cote D&#039;Ivoire";
$country["53"]="Croatia";
$country["54"]="Cuba";
$country["55"]="Cyprus";
$country["56"]="Czech Republic";
$country["57"]="Denmark";
$country["58"]="Djibouti";
$country["59"]="Dominica";
$country["60"]="Dominican Republic";
$country["61"]="East Timor";
$country["62"]="Ecuador";
$country["63"]="Egypt";
$country["64"]="El Salvador";
$country["65"]="Equatorial Guinea";
$country["66"]="Eritrea";
$country["67"]="Estonia";
$country["68"]="Ethiopia";
$country["69"]="Falkland Islands (Malvinas)";
$country["70"]="Faroe Islands";
$country["71"]="Fiji";
$country["72"]="Finland";
$country["73"]="France";
$country["74"]="France, Metropolitan";
$country["75"]="French Guiana";
$country["76"]="French Polynesia";
$country["77"]="French Southern Territories";
$country["78"]="Gabon";
$country["79"]="Gambia";
$country["80"]="Georgia";
$country["81"]="Germany";
$country["82"]="Ghana";
$country["83"]="Gibraltar";
$country["84"]="Greece";
$country["85"]="Greenland";
$country["86"]="Grenada";
$country["87"]="Guadeloupe";
$country["88"]="Guam";
$country["89"]="Guatemala";
$country["90"]="Guinea";
$country["91"]="Guinea-bissau";
$country["92"]="Guyana";
$country["93"]="Haiti";
$country["94"]="Heard and Mc Donald Islands";
$country["95"]="Honduras";
$country["96"]="Hong Kong";
$country["97"]="Hungary";
$country["98"]="Iceland";
$country["99"]="India";
$country["100"]="Indonesia";
$country["101"]="Iran (Islamic Republic of)";
$country["102"]="Iraq";
$country["103"]="Ireland";
$country["104"]="Israel";
$country["105"]="Italy";
$country["106"]="Jamaica";
$country["107"]="Japan";
$country["108"]="Jordan";
$country["109"]="Kazakhstan";
$country["110"]="Kenya";
$country["111"]="Kiribati";
$country["112"]="Korea, Democratic People&#039;s Republic of";
$country["113"]="Korea, Republic of";
$country["114"]="Kuwait";
$country["115"]="Kyrgyzstan";
$country["116"]="Lao People&#039;s Democratic Republic";
$country["117"]="Latvia";
$country["118"]="Lebanon";
$country["119"]="Lesotho";
$country["120"]="Liberia";
$country["121"]="Libyan Arab Jamahiriya";
$country["122"]="Liechtenstein";
$country["123"]="Lithuania";
$country["124"]="Luxembourg";
$country["125"]="Macau";
$country["126"]="Macedonia, The Former Yugoslav Republic of";
$country["127"]="Madagascar";
$country["128"]="Malawi";
$country["129"]="Malaysia";
$country["130"]="Maldives";
$country["131"]="Mali";
$country["132"]="Malta";
$country["133"]="Marshall Islands";
$country["134"]="Martinique";
$country["135"]="Mauritania";
$country["136"]="Mauritius";
$country["137"]="Mayotte";
$country["138"]="Mexico";
$country["139"]="Micronesia, Federated States of";
$country["140"]="Moldova, Republic of";
$country["141"]="Monaco";
$country["142"]="Mongolia";
$country["143"]="Montserrat";
$country["144"]="Morocco";
$country["145"]="Mozambique";
$country["146"]="Myanmar";
$country["147"]="Namibia";
$country["148"]="Nauru";
$country["149"]="Nepal";
$country["150"]="Netherlands";
$country["151"]="Netherlands Antilles";
$country["152"]="New Caledonia";
$country["153"]="New Zealand";
$country["154"]="Nicaragua";
$country["155"]="Niger";
$country["156"]="Nigeria";
$country["157"]="Niue";
$country["158"]="Norfolk Island";
$country["159"]="Northern Mariana Islands";
$country["160"]="Norway";
$country["161"]="Oman";
$country["162"]="Pakistan";
$country["163"]="Palau";
$country["164"]="Panama";
$country["165"]="Papua New Guinea";
$country["166"]="Paraguay";
$country["167"]="Peru";
$country["168"]="Philippines";
$country["169"]="Pitcairn";
$country["170"]="Poland";
$country["171"]="Portugal";
$country["172"]="Puerto Rico";
$country["173"]="Qatar";
$country["174"]="Reunion";
$country["175"]="Romania";
$country["176"]="Russian Federation";
$country["177"]="Rwanda";
$country["178"]="Saint Kitts and Nevis";
$country["179"]="Saint Lucia";
$country["180"]="Saint Vincent and the Grenadines";
$country["181"]="Samoa";
$country["182"]="San Marino";
$country["183"]="Sao Tome and Principe";
$country["184"]="Saudi Arabia";
$country["185"]="Senegal";
$country["186"]="Seychelles";
$country["187"]="Sierra Leone";
$country["188"]="Singapore";
$country["189"]="Slovakia (Slovak Republic)";
$country["190"]="Slovenia";
$country["191"]="Solomon Islands";
$country["192"]="Somalia";
$country["193"]="South Africa";
$country["194"]="South Georgia and the South Sandwich Islands";
$country["195"]="Spain";
$country["196"]="Sri Lanka";
$country["197"]="St. Helena";
$country["198"]="St. Pierre and Miquelon";
$country["199"]="Sudan";
$country["200"]="Suriname";
$country["201"]="Svalbard and Jan Mayen Islands";
$country["202"]="Swaziland";
$country["203"]="Sweden";
$country["204"]="Switzerland";
$country["205"]="Syrian Arab Republic";
$country["206"]="Taiwan";
$country["207"]="Tajikistan";
$country["208"]="Tanzania, United Republic of";
$country["209"]="Thailand";
$country["210"]="Togo";
$country["211"]="Tokelau";
$country["212"]="Tonga";
$country["213"]="Trinidad and Tobago";
$country["214"]="Tunisia";
$country["215"]="Turkey";
$country["216"]="Turkmenistan";
$country["217"]="Turks and Caicos Islands";
$country["218"]="Tuvalu";
$country["219"]="Uganda";
$country["220"]="Ukraine";
$country["221"]="United Arab Emirates";
$country["222"]="United Kingdom";
$country["223" ]="United States";
$country["224"]="United States Minor Outlying Islands";
$country["225"]="Uruguay";
$country["226"]="Uzbekistan";
$country["227"]="Vanuatu";
$country["228"]="Vatican City State (Holy See)";
$country["229"]="Venezuela";
$country["230"]="Viet Nam";
$country["231"]="Virgin Islands (British)";
$country["232"]="Virgin Islands (U.S.)";
$country["233"]="Wallis and Futuna Islands";
$country["234"]="Western Sahara";
$country["235"]="Yemen";
$country["236"]="Yugoslavia";
$country["237"]="Zaire";
$country["238"]="Zambia";
$country["239"]="Zimbabwe";
?>